@inject DialogService DialogService

<MduiButton Color="@Colors.Theme.Accent" OnClick="@Show">Open</MduiButton>

@code {
    void Show()
    {
        DialogService.Show<CustomDialogContent>();
    }
}